/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.general.modelo;

import isd.inventario.modelo.ST_Deposito;
import isd.inventario.modelo.ST_Sector;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import javax.persistence.Basic;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.Embedded;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author Claudio
 */
@Entity
@Table(name = "grccbh")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "GRCCBH_MODCOM", discriminatorType = DiscriminatorType.STRING, length = 2)
public class GR_Comprobante implements Serializable {
    private static final long serialVersionUID = 1L;
    @EmbeddedId
    protected GR_ComprobantePK idPK;
    @Basic(optional = false)

    @Column(name = "GRCCBH_MODCOM",nullable = false, insertable=false, updatable=false, length = 2)
    private String modulo;

    @Column(name = "GRCCBH_CODCOM", nullable = false, insertable=false, updatable=false, length = 6)
    private String codigo;

    @Column(name = "GRCCBH_DESCRP", nullable = false, length = 60)
    private String descrp;
    
    @Column(name = "GRCCBH_TITULO", length = 60)
    private String titulo;

    @Column(name = "GRCCBH_TIPREG")
    private Character tipreg;

            /**
     * Deposito emisor
     */
    @JoinColumn(name = "GRCCBH_STDEPOSI", referencedColumnName = "STTDEH_DEPOSI",nullable = false,insertable=false, updatable=false)
    @ManyToOne(optional=false)
    private ST_Deposito depositoEgreso;

    /**
     * Sector egreso
     */
    @JoinColumns({
        @JoinColumn(name = "GRCCBH_STDEPOSI", referencedColumnName = "STTDEI_DEPOSI", nullable = false),
        @JoinColumn(name = "GRCCBH_STSECTOR", referencedColumnName = "STTDEI_SECTOR", nullable = false)
    })
    @ManyToOne
    private ST_Sector sectorEgreso;


        /**
     * Deposito receptor
     */
    @JoinColumn(name = "GRCCBH_STDEPHAS", referencedColumnName = "STTDEH_DEPOSI",nullable = false,insertable=false, updatable=false)
    @ManyToOne(optional=false)
    private ST_Deposito depositoIngreso;

    /**
     * Sector receptor
     */
    @JoinColumns({
        @JoinColumn(name = "GRCCBH_STDEPHAS", referencedColumnName = "STTDEI_DEPOSI", nullable = false),
        @JoinColumn(name = "GRCCBH_STSECHAS", referencedColumnName = "STTDEI_SECTOR", nullable = false)
    })
    @ManyToOne
    private ST_Sector sectorIngreso;

    
    @Lob
    @Column(name = "GRCCBH_TEXTOS", length = 2147483647)
    private String textos;
    @Column(name = "GRCCBH_CGMASCAR", length = 6)
    private String cgmascar;
    @Column(name = "GRCCBH_CGSUBDIA", length = 1)
    private String cgsubdia;
    @Column(name = "GRCCBH_CGTIPMOV", length = 1)
    private String cgtipmov;
    @Column(name = "GRCCBH_CJCLASIF", length = 1)
    private String cjclasif;
    @Column(name = "GRCCBH_CJMODASI", length = 2)
    private String cjmodasi;
    @Column(name = "GRCCBH_CJCODASI", length = 6)
    private String cjcodasi;
    @Column(name = "GRCCBH_CJCODCAJ", length = 1)
    private String cjcodcaj;
    @Column(name = "GRCCBH_CJDEFITM")
    private Character cjdefitm;
    @Column(name = "GRCCBH_CJVALCTA")
    private Character cjvalcta;
    @Column(name = "GRCCBH_COMASCAR", length = 6)
    private String comascar;
    @Column(name = "GRCCBH_FCMASCAR", length = 6)
    private String fcmascar;
    @Column(name = "GRCCBH_PVMODASI", length = 2)
    private String pvmodasi;
    @Column(name = "GRCCBH_PVCODASI", length = 6)
    private String pvcodasi;
    @Column(name = "GRCCBH_PVCOLTOT", length = 1)
    private String pvcoltot;
    @Column(name = "GRCCBH_PVIMPTCN", length = 6)
    private String pvimptcn;
    @Column(name = "GRCCBH_PVINCEST")
    private Character pvincest;
    @Column(name = "GRCCBH_PVINCITI")
    private Character pvinciti;
    @Column(name = "GRCCBH_PVINCSEL")
    private Character pvincsel;
    @Column(name = "GRCCBH_PVRELACI")
    private Character pvrelaci;
    @Column(name = "GRCCBH_PVSIGTOT", length = 1)
    private String pvsigtot;
    @Column(name = "GRCCBH_PVSUBDIA", length = 1)
    private String pvsubdia;
    @Column(name = "GRCCBH_VTMODASI", length = 2)
    private String vtmodasi;
    @Column(name = "GRCCBH_VTCODASI", length = 6)
    private String vtcodasi;
    @Column(name = "GRCCBH_VTCOLTOT", length = 1)
    private String vtcoltot;
    @Column(name = "GRCCBH_VTIMPTCN", length = 6)
    private String vtimptcn;
    @Column(name = "GRCCBH_VTINCVND")
    private Character vtincvnd;
    @Column(name = "GRCCBH_VTINCCOB")
    private Character vtinccob;
    @Column(name = "GRCCBH_VTINCEST")
    private Character vtincest;
    @Column(name = "GRCCBH_VTINCITI")
    private Character vtinciti;
    @Column(name = "GRCCBH_VTRELACI")
    private Character vtrelaci;
    @Column(name = "GRCCBH_VTSIGTOT", length = 1)
    private String vtsigtot;
    @Column(name = "GRCCBH_VTSUBDIA", length = 1)
    private String vtsubdia;
    @Column(name = "GRCCBH_VTEXPORT")
    private Character vtexport;
    @Column(name = "GRCCBH_CFTIPESM", length = 1)
    private String cftipesm;
    @Column(name = "GRCCBH_VTVALREC", length = 1)
    private String vtvalrec;
    @Column(name = "GRCCBH_CGDIMUNI", length = 1)
    private String cgdimuni;
    @Column(name = "GRCCBH_CJDIMUNI", length = 1)
    private String cjdimuni;
    @Column(name = "GRCCBH_VTDIMUNI")
    private Character vtdimuni;
    @Column(name = "GRCCBH_PVDIMUNI")
    private Character pvdimuni;
    @Column(name = "GRCCBH_SJDIMUNI")
    private Character sjdimuni;
    @Column(name = "GRCCBH_STDIMUNI")
    private Character stdimuni;
    @Column(name = "GRCCBH_VTINCVTA")
    private Character vtincvta;
    @Column(name = "GRCCBH_CJINCSUB")
    private Character cjincsub;
    @Column(name = "GRCCBH_PVVALREC", length = 1)
    private String pvvalrec;
    @Column(name = "GRCCBH_COPIAS")
    private Short copias;
    @Column(name = "GRCCBH_CJSUBDIA")
    private Character cjsubdia;
    @Column(name = "GRCCBH_RECFEC", length = 1)
    private String recfec;
    @Column(name = "GRCCBH_CVTIPCOM", length = 1)
    private String cvtipcom;
    @Column(name = "GRCCBH_CBCTACTE", length = 6)
    private String cbctacte;
    @Column(name = "GRCCBH_PVINCPVS")
    private Character pvincpvs;
    @Column(name = "GRCCBH_HSERIE")
    private Character hserie;
    @Column(name = "GRCCBH_HDESPA")
    private Character hdespa;
    @Column(name = "GRCCBH_HOTROS")
    private Character hotros;
    @Column(name = "GRCCBH_HENVAS")
    private Character henvas;
    @Column(name = "GRCCBH_HFECHA")
    private Character hfecha;
    @Column(name = "GRCCBH_HATRIB")
    private Character hatrib;
    @Column(name = "GRCCBH_HESTAN")
    private Character hestan;
    @Column(name = "GRCCBH_HUBICA")
    private Character hubica;
    @Column(name = "GRCCBH_CFVENC", length = 1)
    private String cfvenc;
    @Column(name = "GRCCBH_PDNROINT")
    private Character pdnroint;
    @Column(name = "GRCCBH_SJTIPCOM", length = 1)
    private String sjtipcom;
    @Column(name = "GRCCBH_SJCODCPT", length = 6)
    private String sjcodcpt;
    @Column(name = "GRCCBH_STMODASI", length = 2)
    private String stmodasi;
    @Column(name = "GRCCBH_STCODASI", length = 6)
    private String stcodasi;
    @Column(name = "GRCCBH_CJCIERRE")
    private Character cjcierre;
    @Column(name = "GRCCBH_STCLASIF", length = 1)
    private String ftclasif;
    @Column(name = "GRCCBH_FCINCEST")
    private Character fcincest;
    @Column(name = "GRCCBH_COINCEST")
    private Character coincest;
    @Column(name = "GRCCBH_GCFCHMOV")
    private Character gcfchmov;
    @Column(name = "GRCCBH_CJLECTOR", length = 6)
    private String cjlector;
    @Column(name = "GRCCBH_CGCOFLIS", length = 6)
    private String cgcoflis;
    @Column(name = "GRCCBH_CGEDIMON")
    private Character cgedimon;
    @Column(name = "GRCCBH_TIPCOM", length = 1)
    private String tipcom;
    @Column(name = "GRCCBH_MULFRM")
    private Character mulfrm;
    @Column(name = "GRCCBH_DEFSTD")
    private Character defstd;
    @Column(name = "GRCCBH_TRAFCR")
    private Character trafcr;
    @Column(name = "GRCCBH_MODCDV", length = 2)
    private String modcdv;
    @Column(name = "GRCCBH_CODCDV", length = 6)
    private String codcdv;
    @Column(name = "GRCCBH_VTNOAPLI")
    private Character vtnoapli;
    @Column(name = "GRCCBH_PVNOAPLI")
    private Character pvnoapli;
    @Column(name = "GRCCBH_VTMODDEB", length = 2)
    private String vtmoddeb;
    @Column(name = "GRCCBH_VTCOMDEB", length = 6)
    private String vtcomdeb;
    @Column(name = "GRCCBH_VTMODDEBC", length = 2)
    private String vtmoddebc;
    @Column(name = "GRCCBH_VTCOMDEBC", length = 6)
    private String vtcomdebc;
    @Column(name = "GRCCBH_VTMODCRE", length = 2)
    private String vtmodcre;
    @Column(name = "GRCCBH_VTCOMCRE", length = 6)
    private String vtcomcre;
    @Column(name = "GRCCBH_VTMODCREC", length = 2)
    private String vtmodcrec;
    @Column(name = "GRCCBH_VTCOMCREC", length = 6)
    private String vtcomcrec;
    @Column(name = "GRCCBH_PVMODDEB", length = 2)
    private String pvmoddeb;
    @Column(name = "GRCCBH_PVCOMDEB", length = 6)
    private String pvcomdeb;
    @Column(name = "GRCCBH_PVMODDEBC", length = 2)
    private String pvmoddebc;
    @Column(name = "GRCCBH_PVCOMDEBC", length = 6)
    private String pvcomdebc;
    @Column(name = "GRCCBH_PVMODCRE", length = 2)
    private String pvmodcre;
    @Column(name = "GRCCBH_PVCOMCRE", length = 6)
    private String pvcomcre;
    @Column(name = "GRCCBH_PVMODCREC", length = 2)
    private String pvmodcrec;
    @Column(name = "GRCCBH_PVCOMCREC", length = 6)
    private String pvcomcrec;
    @Column(name = "GRCCBH_VTMODANU", length = 2)
    private String vtmodanu;
    @Column(name = "GRCCBH_VTCOMANU", length = 6)
    private String vtcomanu;
    @Column(name = "GRCCBH_VTMODANUC", length = 2)
    private String vtmodanuc;
    @Column(name = "GRCCBH_VTCOMANUC", length = 6)
    private String vtcomanuc;
    @Column(name = "GRCCBH_PVMODANU", length = 2)
    private String pvmodanu;
    @Column(name = "GRCCBH_PVCOMANU", length = 6)
    private String pvcomanu;
    @Column(name = "GRCCBH_PVMODANUC", length = 2)
    private String pvmodanuc;
    @Column(name = "GRCCBH_PVCOMANUC", length = 6)
    private String pvcomanuc;
    @Column(name = "GRCCBH_CJTRAFCH")
    private Character cjtrafch;
    @Column(name = "GRCCBH_CJFCHDES")
    @Temporal(TemporalType.TIMESTAMP)
    private Date cjfchdes;
    @Column(name = "GRCCBH_CVMASCAR", length = 6)
    private String cvmascar;
    @Column(name = "GRCCBH_PVEDITIMP")
    private Character pveditimp;
    @Column(name = "GRCCBH_CBINFCHE")
    private Character cbinfche;
    @Column(name = "GRCCBH_PVCODSEM", length = 6)
    private String pvcodsem;
    @Column(name = "GRCCBH_PVNOAUTO")
    private Character pvnoauto;
    @Column(name = "GRCCBH_LECTOR", length = 6)
    private String lector;
    @Column(name = "GRCCBH_STLLEPLA")
    private Character stllepla;
    @Column(name = "GRCCBH_VTPORMIN", precision = 15, scale = 7)
    private BigDecimal vtpormin;
    @Column(name = "GRCCBH_VTPORMAX", precision = 15, scale = 7)
    private BigDecimal vtpormax;
    @Column(name = "GRCCBH_PVPORMIN", precision = 15, scale = 7)
    private BigDecimal pvpormin;
    @Column(name = "GRCCBH_PVPORMAX", precision = 15, scale = 7)
    private BigDecimal pvpormax;
    @Column(name = "GRCCBH_VTINDBCR")
    private Character vtindbcr;
    @Column(name = "GRCCBH_VTNODIF")
    private Character vtnodif;
    @Column(name = "GRCCBH_PVNODIF")
    private Character pvnodif;
    @Column(name = "GRCCBH_CODDIM", length = 6)
    private String coddim;
    @Column(name = "GRCCBH_SUBCUE", length = 40)
    private String subcue;
    @Column(name = "GRCCBH_PVCTACTR")
    private Character pvctactr;
    @Column(name = "GRCCBH_REPPRE", length = 15)
    private String reppre;
    @Column(name = "GRCCBH_NORECI")
    private Character noreci;
    @Column(name = "GRCCBH_CONDIA")
    private Character condia;
    @Column(name = "GRCCBH_PVFISCAL")
    private Character pvfiscal;
    @Column(name = "GRCCBH_STVALXCR")
    private Character stvalxcr;
    
    @Column(name = "GRCCBH_HORMOV", length = 10)
    private String hormov;
    @Column(name = "GRCCBH_MODULE", length = 10)
    private String module;
    
    @Column(name = "GRCCBH_LOTTRA", length = 6)
    private String lottra;
    @Column(name = "GRCCBH_LOTREC", length = 6)
    private String lotrec;
    @Column(name = "GRCCBH_LOTORI", length = 6)
    private String lotori;
    @Column(name = "GRCCBH_SYSVER", length = 10)
    private String sysver;
    @Column(name = "GRCCBH_CMPVER", length = 10)
    private String cmpver;
    @Column(name = "GRCCBH_PERSON")
    private Character person;
    @Column(name = "GRCCBH_MODNUM")
    private Character modnum;
    @Column(name = "GRCCBH_MODFEC")
    private Character modfec;
    @Column(name = "GRCCBH_SECNUM")
    private Character secnum;
    @Column(name = "GRCCBH_SECFEC")
    private Character secfec;
    @Column(name = "GRCCBH_REPECE")
    private Character repece;
    @Column(name = "GRCCBH_VTINCPVS")
    private Character vtincpvs;
    @Column(name = "GRCCBH_PVINCVTA")
    private Character pvincvta;
    @Column(name = "GRCCBH_CJREQCOB")
    private Character cjreqcob;

    @Embedded
    private GR_Auditoria auditoria;

    @OneToMany(cascade = CascadeType.ALL, mappedBy = "comprobante", fetch=FetchType.LAZY)
    private List<GR_FormularioPorSituacionIVA> formulariosPorSituacionIVA;

    public GR_Comprobante() {
    }

    public GR_Comprobante(GR_ComprobantePK gR_ComprobantePK) {
        this.idPK = gR_ComprobantePK;
    }

    public GR_Comprobante(GR_ComprobantePK gR_ComprobantePK, String Descrp) {
        this.idPK = gR_ComprobantePK;
        this.descrp = Descrp;
    }

    public GR_Comprobante(String Modcom, String Codcom) {
        this.idPK = new GR_ComprobantePK(Modcom, Codcom);
    }

    public GR_ComprobantePK getGR_ComprobantePK() {
        return idPK;
    }

    public void setGR_ComprobantePK(GR_ComprobantePK idPK) {
        this.idPK = idPK;
    }

    public String getCbctacte() {
        return cbctacte;
    }

    public void setCbctacte(String cbctacte) {
        this.cbctacte = cbctacte;
    }

    public Character getCbinfche() {
        return cbinfche;
    }

    public void setCbinfche(Character cbinfche) {
        this.cbinfche = cbinfche;
    }

    public String getCftipesm() {
        return cftipesm;
    }

    public void setCftipesm(String cftipesm) {
        this.cftipesm = cftipesm;
    }

    public String getCfvenc() {
        return cfvenc;
    }

    public void setCfvenc(String cfvenc) {
        this.cfvenc = cfvenc;
    }

    public String getCgcoflis() {
        return cgcoflis;
    }

    public void setCgcoflis(String cgcoflis) {
        this.cgcoflis = cgcoflis;
    }

    public String getCgdimuni() {
        return cgdimuni;
    }

    public void setCgdimuni(String cgdimuni) {
        this.cgdimuni = cgdimuni;
    }

    public Character getCgedimon() {
        return cgedimon;
    }

    public void setCgedimon(Character cgedimon) {
        this.cgedimon = cgedimon;
    }

    public String getCgmascar() {
        return cgmascar;
    }

    public void setCgmascar(String cgmascar) {
        this.cgmascar = cgmascar;
    }

    public String getCgsubdia() {
        return cgsubdia;
    }

    public void setCgsubdia(String cgsubdia) {
        this.cgsubdia = cgsubdia;
    }

    public String getCgtipmov() {
        return cgtipmov;
    }

    public void setCgtipmov(String cgtipmov) {
        this.cgtipmov = cgtipmov;
    }

    public Character getCjcierre() {
        return cjcierre;
    }

    public void setCjcierre(Character cjcierre) {
        this.cjcierre = cjcierre;
    }

    public String getCjclasif() {
        return cjclasif;
    }

    public void setCjclasif(String cjclasif) {
        this.cjclasif = cjclasif;
    }

    public String getCjcodasi() {
        return cjcodasi;
    }

    public void setCjcodasi(String cjcodasi) {
        this.cjcodasi = cjcodasi;
    }

    public String getCjcodcaj() {
        return cjcodcaj;
    }

    public void setCjcodcaj(String cjcodcaj) {
        this.cjcodcaj = cjcodcaj;
    }

    public Character getCjdefitm() {
        return cjdefitm;
    }

    public void setCjdefitm(Character cjdefitm) {
        this.cjdefitm = cjdefitm;
    }

    public String getCjdimuni() {
        return cjdimuni;
    }

    public void setCjdimuni(String cjdimuni) {
        this.cjdimuni = cjdimuni;
    }

    public Date getCjfchdes() {
        return cjfchdes;
    }

    public void setCjfchdes(Date cjfchdes) {
        this.cjfchdes = cjfchdes;
    }

    public Character getCjincsub() {
        return cjincsub;
    }

    public void setCjincsub(Character cjincsub) {
        this.cjincsub = cjincsub;
    }

    public String getCjlector() {
        return cjlector;
    }

    public void setCjlector(String cjlector) {
        this.cjlector = cjlector;
    }

    public String getCjmodasi() {
        return cjmodasi;
    }

    public void setCjmodasi(String cjmodasi) {
        this.cjmodasi = cjmodasi;
    }

    public Character getCjreqcob() {
        return cjreqcob;
    }

    public void setCjreqcob(Character cjreqcob) {
        this.cjreqcob = cjreqcob;
    }

    public Character getCjsubdia() {
        return cjsubdia;
    }

    public void setCjsubdia(Character cjsubdia) {
        this.cjsubdia = cjsubdia;
    }

    public Character getCjtrafch() {
        return cjtrafch;
    }

    public void setCjtrafch(Character cjtrafch) {
        this.cjtrafch = cjtrafch;
    }

    public Character getCjvalcta() {
        return cjvalcta;
    }

    public void setCjvalcta(Character cjvalcta) {
        this.cjvalcta = cjvalcta;
    }

    public String getCmpver() {
        return cmpver;
    }

    public void setCmpver(String cmpver) {
        this.cmpver = cmpver;
    }

    public String getCodcdv() {
        return codcdv;
    }

    public void setCodcdv(String codcdv) {
        this.codcdv = codcdv;
    }

    public String getCoddim() {
        return coddim;
    }

    public void setCoddim(String coddim) {
        this.coddim = coddim;
    }

    public Character getCoincest() {
        return coincest;
    }

    public void setCoincest(Character coincest) {
        this.coincest = coincest;
    }

    public String getComascar() {
        return comascar;
    }

    public void setComascar(String comascar) {
        this.comascar = comascar;
    }

    public Character getCondia() {
        return condia;
    }

    public void setCondia(Character condia) {
        this.condia = condia;
    }

    public Short getCopias() {
        return copias;
    }

    public void setCopias(Short copias) {
        this.copias = copias;
    }

    public String getCvmascar() {
        return cvmascar;
    }

    public void setCvmascar(String cvmascar) {
        this.cvmascar = cvmascar;
    }

    public String getCvtipcom() {
        return cvtipcom;
    }

    public void setCvtipcom(String cvtipcom) {
        this.cvtipcom = cvtipcom;
    }

    public Character getDefstd() {
        return defstd;
    }

    public void setDefstd(Character defstd) {
        this.defstd = defstd;
    }

    public String getDescrp() {
        return descrp;
    }

    public void setDescrp(String descrp) {
        this.descrp = descrp;
    }

    public Character getFcincest() {
        return fcincest;
    }

    public void setFcincest(Character fcincest) {
        this.fcincest = fcincest;
    }

    public String getFcmascar() {
        return fcmascar;
    }

    public void setFcmascar(String fcmascar) {
        this.fcmascar = fcmascar;
    }

    public String getFtclasif() {
        return ftclasif;
    }

    public void setFtclasif(String ftclasif) {
        this.ftclasif = ftclasif;
    }

    public Character getGcfchmov() {
        return gcfchmov;
    }

    public void setGcfchmov(Character gcfchmov) {
        this.gcfchmov = gcfchmov;
    }

    public Character getHatrib() {
        return hatrib;
    }

    public void setHatrib(Character hatrib) {
        this.hatrib = hatrib;
    }

    public Character getHdespa() {
        return hdespa;
    }

    public void setHdespa(Character hdespa) {
        this.hdespa = hdespa;
    }

    public Character getHenvas() {
        return henvas;
    }

    public void setHenvas(Character henvas) {
        this.henvas = henvas;
    }

    public Character getHestan() {
        return hestan;
    }

    public void setHestan(Character hestan) {
        this.hestan = hestan;
    }

    public Character getHfecha() {
        return hfecha;
    }

    public void setHfecha(Character hfecha) {
        this.hfecha = hfecha;
    }

    public String getHormov() {
        return hormov;
    }

    public void setHormov(String hormov) {
        this.hormov = hormov;
    }

    public Character getHotros() {
        return hotros;
    }

    public void setHotros(Character hotros) {
        this.hotros = hotros;
    }

    public Character getHserie() {
        return hserie;
    }

    public void setHserie(Character hserie) {
        this.hserie = hserie;
    }

    public Character getHubica() {
        return hubica;
    }

    public void setHubica(Character hubica) {
        this.hubica = hubica;
    }

    public GR_ComprobantePK getIdPK() {
        return idPK;
    }

    public void setIdPK(GR_ComprobantePK idPK) {
        this.idPK = idPK;
    }

    public String getLector() {
        return lector;
    }

    public void setLector(String lector) {
        this.lector = lector;
    }

    public String getLotori() {
        return lotori;
    }

    public void setLotori(String lotori) {
        this.lotori = lotori;
    }

    public String getLotrec() {
        return lotrec;
    }

    public void setLotrec(String lotrec) {
        this.lotrec = lotrec;
    }

    public String getLottra() {
        return lottra;
    }

    public void setLottra(String lottra) {
        this.lottra = lottra;
    }

    public String getModcdv() {
        return modcdv;
    }

    public void setModcdv(String modcdv) {
        this.modcdv = modcdv;
    }

    public Character getModfec() {
        return modfec;
    }

    public void setModfec(Character modfec) {
        this.modfec = modfec;
    }

    public Character getModnum() {
        return modnum;
    }

    public void setModnum(Character modnum) {
        this.modnum = modnum;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public Character getMulfrm() {
        return mulfrm;
    }

    public void setMulfrm(Character mulfrm) {
        this.mulfrm = mulfrm;
    }

    public Character getNoreci() {
        return noreci;
    }

    public void setNoreci(Character noreci) {
        this.noreci = noreci;
    }

    public Character getPdnroint() {
        return pdnroint;
    }

    public void setPdnroint(Character pdnroint) {
        this.pdnroint = pdnroint;
    }

    public Character getPerson() {
        return person;
    }

    public void setPerson(Character person) {
        this.person = person;
    }

    public String getPvcodasi() {
        return pvcodasi;
    }

    public void setPvcodasi(String pvcodasi) {
        this.pvcodasi = pvcodasi;
    }

    public String getPvcodsem() {
        return pvcodsem;
    }

    public void setPvcodsem(String pvcodsem) {
        this.pvcodsem = pvcodsem;
    }

    public String getPvcoltot() {
        return pvcoltot;
    }

    public void setPvcoltot(String pvcoltot) {
        this.pvcoltot = pvcoltot;
    }

    public String getPvcomanu() {
        return pvcomanu;
    }

    public void setPvcomanu(String pvcomanu) {
        this.pvcomanu = pvcomanu;
    }

    public String getPvcomanuc() {
        return pvcomanuc;
    }

    public void setPvcomanuc(String pvcomanuc) {
        this.pvcomanuc = pvcomanuc;
    }

    public String getPvcomcre() {
        return pvcomcre;
    }

    public void setPvcomcre(String pvcomcre) {
        this.pvcomcre = pvcomcre;
    }

    public String getPvcomcrec() {
        return pvcomcrec;
    }

    public void setPvcomcrec(String pvcomcrec) {
        this.pvcomcrec = pvcomcrec;
    }

    public String getPvcomdeb() {
        return pvcomdeb;
    }

    public void setPvcomdeb(String pvcomdeb) {
        this.pvcomdeb = pvcomdeb;
    }

    public String getPvcomdebc() {
        return pvcomdebc;
    }

    public void setPvcomdebc(String pvcomdebc) {
        this.pvcomdebc = pvcomdebc;
    }

    public Character getPvctactr() {
        return pvctactr;
    }

    public void setPvctactr(Character pvctactr) {
        this.pvctactr = pvctactr;
    }

    public Character getPvdimuni() {
        return pvdimuni;
    }

    public void setPvdimuni(Character pvdimuni) {
        this.pvdimuni = pvdimuni;
    }

    public Character getPveditimp() {
        return pveditimp;
    }

    public void setPveditimp(Character pveditimp) {
        this.pveditimp = pveditimp;
    }

    public Character getPvfiscal() {
        return pvfiscal;
    }

    public void setPvfiscal(Character pvfiscal) {
        this.pvfiscal = pvfiscal;
    }

    public String getPvimptcn() {
        return pvimptcn;
    }

    public void setPvimptcn(String pvimptcn) {
        this.pvimptcn = pvimptcn;
    }

    public Character getPvincest() {
        return pvincest;
    }

    public void setPvincest(Character pvincest) {
        this.pvincest = pvincest;
    }

    public Character getPvinciti() {
        return pvinciti;
    }

    public void setPvinciti(Character pvinciti) {
        this.pvinciti = pvinciti;
    }

    public Character getPvincpvs() {
        return pvincpvs;
    }

    public void setPvincpvs(Character pvincpvs) {
        this.pvincpvs = pvincpvs;
    }

    public Character getPvincsel() {
        return pvincsel;
    }

    public void setPvincsel(Character pvincsel) {
        this.pvincsel = pvincsel;
    }

    public Character getPvincvta() {
        return pvincvta;
    }

    public void setPvincvta(Character pvincvta) {
        this.pvincvta = pvincvta;
    }

    public String getPvmodanu() {
        return pvmodanu;
    }

    public void setPvmodanu(String pvmodanu) {
        this.pvmodanu = pvmodanu;
    }

    public String getPvmodanuc() {
        return pvmodanuc;
    }

    public void setPvmodanuc(String pvmodanuc) {
        this.pvmodanuc = pvmodanuc;
    }

    public String getPvmodasi() {
        return pvmodasi;
    }

    public void setPvmodasi(String pvmodasi) {
        this.pvmodasi = pvmodasi;
    }

    public String getPvmodcre() {
        return pvmodcre;
    }

    public void setPvmodcre(String pvmodcre) {
        this.pvmodcre = pvmodcre;
    }

    public String getPvmodcrec() {
        return pvmodcrec;
    }

    public void setPvmodcrec(String pvmodcrec) {
        this.pvmodcrec = pvmodcrec;
    }

    public String getPvmoddeb() {
        return pvmoddeb;
    }

    public void setPvmoddeb(String pvmoddeb) {
        this.pvmoddeb = pvmoddeb;
    }

    public String getPvmoddebc() {
        return pvmoddebc;
    }

    public void setPvmoddebc(String pvmoddebc) {
        this.pvmoddebc = pvmoddebc;
    }

    public Character getPvnoapli() {
        return pvnoapli;
    }

    public void setPvnoapli(Character pvnoapli) {
        this.pvnoapli = pvnoapli;
    }

    public Character getPvnoauto() {
        return pvnoauto;
    }

    public void setPvnoauto(Character pvnoauto) {
        this.pvnoauto = pvnoauto;
    }

    public Character getPvnodif() {
        return pvnodif;
    }

    public void setPvnodif(Character pvnodif) {
        this.pvnodif = pvnodif;
    }

    public BigDecimal getPvpormax() {
        return pvpormax;
    }

    public void setPvpormax(BigDecimal pvpormax) {
        this.pvpormax = pvpormax;
    }

    public BigDecimal getPvpormin() {
        return pvpormin;
    }

    public void setPvpormin(BigDecimal pvpormin) {
        this.pvpormin = pvpormin;
    }

    public Character getPvrelaci() {
        return pvrelaci;
    }

    public void setPvrelaci(Character pvrelaci) {
        this.pvrelaci = pvrelaci;
    }

    public String getPvsigtot() {
        return pvsigtot;
    }

    public void setPvsigtot(String pvsigtot) {
        this.pvsigtot = pvsigtot;
    }

    public String getPvsubdia() {
        return pvsubdia;
    }

    public void setPvsubdia(String pvsubdia) {
        this.pvsubdia = pvsubdia;
    }

    public String getPvvalrec() {
        return pvvalrec;
    }

    public void setPvvalrec(String pvvalrec) {
        this.pvvalrec = pvvalrec;
    }

    public String getRecfec() {
        return recfec;
    }

    public void setRecfec(String recfec) {
        this.recfec = recfec;
    }

    public Character getRepece() {
        return repece;
    }

    public void setRepece(Character repece) {
        this.repece = repece;
    }

    public String getReppre() {
        return reppre;
    }

    public void setReppre(String reppre) {
        this.reppre = reppre;
    }

    public Character getSecfec() {
        return secfec;
    }

    public void setSecfec(Character secfec) {
        this.secfec = secfec;
    }

    public Character getSecnum() {
        return secnum;
    }

    public void setSecnum(Character secnum) {
        this.secnum = secnum;
    }

    public String getSjcodcpt() {
        return sjcodcpt;
    }

    public void setSjcodcpt(String sjcodcpt) {
        this.sjcodcpt = sjcodcpt;
    }

    public Character getSjdimuni() {
        return sjdimuni;
    }

    public void setSjdimuni(Character sjdimuni) {
        this.sjdimuni = sjdimuni;
    }

    public String getSjtipcom() {
        return sjtipcom;
    }

    public void setSjtipcom(String sjtipcom) {
        this.sjtipcom = sjtipcom;
    }

    public String getStcodasi() {
        return stcodasi;
    }

    public void setStcodasi(String stcodasi) {
        this.stcodasi = stcodasi;
    }

    public Character getStdimuni() {
        return stdimuni;
    }

    public void setStdimuni(Character stdimuni) {
        this.stdimuni = stdimuni;
    }

    public Character getStllepla() {
        return stllepla;
    }

    public void setStllepla(Character stllepla) {
        this.stllepla = stllepla;
    }

    public String getStmodasi() {
        return stmodasi;
    }

    public void setStmodasi(String stmodasi) {
        this.stmodasi = stmodasi;
    }

    public Character getStvalxcr() {
        return stvalxcr;
    }

    public void setStvalxcr(Character stvalxcr) {
        this.stvalxcr = stvalxcr;
    }

    public String getSubcue() {
        return subcue;
    }

    public void setSubcue(String subcue) {
        this.subcue = subcue;
    }

    public String getSysver() {
        return sysver;
    }

    public void setSysver(String sysver) {
        this.sysver = sysver;
    }

    public String getTextos() {
        return textos;
    }

    public void setTextos(String textos) {
        this.textos = textos;
    }

    public String getTipcom() {
        return tipcom;
    }

    public void setTipcom(String tipcom) {
        this.tipcom = tipcom;
    }

    public Character getTipreg() {
        return tipreg;
    }

    public void setTipreg(Character tipreg) {
        this.tipreg = tipreg;
    }

    public String getTitulo() {
        return titulo;
    }

    public void setTitulo(String titulo) {
        this.titulo = titulo;
    }

    public Character getTrafcr() {
        return trafcr;
    }

    public void setTrafcr(Character trafcr) {
        this.trafcr = trafcr;
    }

    public String getVtcodasi() {
        return vtcodasi;
    }

    public void setVtcodasi(String vtcodasi) {
        this.vtcodasi = vtcodasi;
    }

    public String getVtcoltot() {
        return vtcoltot;
    }

    public void setVtcoltot(String vtcoltot) {
        this.vtcoltot = vtcoltot;
    }

    public String getVtcomanu() {
        return vtcomanu;
    }

    public void setVtcomanu(String vtcomanu) {
        this.vtcomanu = vtcomanu;
    }

    public String getVtcomanuc() {
        return vtcomanuc;
    }

    public void setVtcomanuc(String vtcomanuc) {
        this.vtcomanuc = vtcomanuc;
    }

    public String getVtcomcre() {
        return vtcomcre;
    }

    public void setVtcomcre(String vtcomcre) {
        this.vtcomcre = vtcomcre;
    }

    public String getVtcomcrec() {
        return vtcomcrec;
    }

    public void setVtcomcrec(String vtcomcrec) {
        this.vtcomcrec = vtcomcrec;
    }

    public String getVtcomdeb() {
        return vtcomdeb;
    }

    public void setVtcomdeb(String vtcomdeb) {
        this.vtcomdeb = vtcomdeb;
    }

    public String getVtcomdebc() {
        return vtcomdebc;
    }

    public void setVtcomdebc(String vtcomdebc) {
        this.vtcomdebc = vtcomdebc;
    }

    public Character getVtdimuni() {
        return vtdimuni;
    }

    public void setVtdimuni(Character vtdimuni) {
        this.vtdimuni = vtdimuni;
    }

    public Character getVtexport() {
        return vtexport;
    }

    public void setVtexport(Character vtexport) {
        this.vtexport = vtexport;
    }

    public String getVtimptcn() {
        return vtimptcn;
    }

    public void setVtimptcn(String vtimptcn) {
        this.vtimptcn = vtimptcn;
    }

    public Character getVtinccob() {
        return vtinccob;
    }

    public void setVtinccob(Character vtinccob) {
        this.vtinccob = vtinccob;
    }

    public Character getVtincest() {
        return vtincest;
    }

    public void setVtincest(Character vtincest) {
        this.vtincest = vtincest;
    }

    public Character getVtinciti() {
        return vtinciti;
    }

    public void setVtinciti(Character vtinciti) {
        this.vtinciti = vtinciti;
    }

    public Character getVtincpvs() {
        return vtincpvs;
    }

    public void setVtincpvs(Character vtincpvs) {
        this.vtincpvs = vtincpvs;
    }

    public Character getVtincvnd() {
        return vtincvnd;
    }

    public void setVtincvnd(Character vtincvnd) {
        this.vtincvnd = vtincvnd;
    }

    public Character getVtincvta() {
        return vtincvta;
    }

    public void setVtincvta(Character vtincvta) {
        this.vtincvta = vtincvta;
    }

    public Character getVtindbcr() {
        return vtindbcr;
    }

    public void setVtindbcr(Character vtindbcr) {
        this.vtindbcr = vtindbcr;
    }

    public String getVtmodanu() {
        return vtmodanu;
    }

    public void setVtmodanu(String vtmodanu) {
        this.vtmodanu = vtmodanu;
    }

    public String getVtmodanuc() {
        return vtmodanuc;
    }

    public void setVtmodanuc(String vtmodanuc) {
        this.vtmodanuc = vtmodanuc;
    }

    public String getVtmodasi() {
        return vtmodasi;
    }

    public void setVtmodasi(String vtmodasi) {
        this.vtmodasi = vtmodasi;
    }

    public String getVtmodcre() {
        return vtmodcre;
    }

    public void setVtmodcre(String vtmodcre) {
        this.vtmodcre = vtmodcre;
    }

    public String getVtmodcrec() {
        return vtmodcrec;
    }

    public void setVtmodcrec(String vtmodcrec) {
        this.vtmodcrec = vtmodcrec;
    }

    public String getVtmoddeb() {
        return vtmoddeb;
    }

    public void setVtmoddeb(String vtmoddeb) {
        this.vtmoddeb = vtmoddeb;
    }

    public String getVtmoddebc() {
        return vtmoddebc;
    }

    public void setVtmoddebc(String vtmoddebc) {
        this.vtmoddebc = vtmoddebc;
    }

    public Character getVtnoapli() {
        return vtnoapli;
    }

    public void setVtnoapli(Character vtnoapli) {
        this.vtnoapli = vtnoapli;
    }

    public Character getVtnodif() {
        return vtnodif;
    }

    public void setVtnodif(Character vtnodif) {
        this.vtnodif = vtnodif;
    }

    public BigDecimal getVtpormax() {
        return vtpormax;
    }

    public void setVtpormax(BigDecimal vtpormax) {
        this.vtpormax = vtpormax;
    }

    public BigDecimal getVtpormin() {
        return vtpormin;
    }

    public void setVtpormin(BigDecimal vtpormin) {
        this.vtpormin = vtpormin;
    }

    public Character getVtrelaci() {
        return vtrelaci;
    }

    public void setVtrelaci(Character vtrelaci) {
        this.vtrelaci = vtrelaci;
    }

    public String getVtsigtot() {
        return vtsigtot;
    }

    public void setVtsigtot(String vtsigtot) {
        this.vtsigtot = vtsigtot;
    }

    public String getVtsubdia() {
        return vtsubdia;
    }

    public void setVtsubdia(String vtsubdia) {
        this.vtsubdia = vtsubdia;
    }

    public String getVtvalrec() {
        return vtvalrec;
    }

    public void setVtvalrec(String vtvalrec) {
        this.vtvalrec = vtvalrec;
    }

    public String getCodigo() {
        return codigo;
    }

    public void setCodigo(String codigo) {
        this.codigo = codigo;
    }

    public String getModulo() {
        return modulo;
    }

    public void setModulo(String modulo) {
        this.modulo = modulo;
    }

    public GR_Auditoria getAuditoria() {
        return auditoria;
    }

    public void setAuditoria(GR_Auditoria auditoria) {
        this.auditoria = auditoria;
    }

    public List<GR_FormularioPorSituacionIVA> getFormulariosPorSituacionIVA() {
        return formulariosPorSituacionIVA;
    }

    public void setFormulariosPorSituacionIVA(List<GR_FormularioPorSituacionIVA> formulariosPorSituacionIVA) {
        this.formulariosPorSituacionIVA = formulariosPorSituacionIVA;
    }

    public ST_Deposito getDepositoEgreso() {
        return depositoEgreso;
    }

    public void setDepositoEgreso(ST_Deposito depositoEmisor) {
        this.depositoEgreso = depositoEmisor;
    }

    public ST_Deposito getDepositoIngreso() {
        return depositoIngreso;
    }

    public void setDepositoIngreso(ST_Deposito depositoIngreso) {
        this.depositoIngreso = depositoIngreso;
    }

    public ST_Sector getSectorEgreso() {
        return sectorEgreso;
    }

    public void setSectorEgreso(ST_Sector sectorEgreso) {
        this.sectorEgreso = sectorEgreso;
    }

    public ST_Sector getSectorIngreso() {
        return sectorIngreso;
    }

    public void setSectorIngreso(ST_Sector sectorIngreso) {
        this.sectorIngreso = sectorIngreso;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idPK != null ? idPK.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof GR_Comprobante)) {
            return false;
        }
        GR_Comprobante other = (GR_Comprobante) object;
        if ((this.idPK == null && other.idPK != null) || (this.idPK != null && !this.idPK.equals(other.idPK))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return ""+idPK;
    }

}
